<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <meta name="discription" content="Php framework zcmf izcmf создание сайтов, фреймворк"/>
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl?>/js/modulargrid.js"></script>
        <!-- blueprint CSS framework -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
        <!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/sc.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
        <link rel="stylesheet"  type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

        <title><?php echo Config::model()->find('conf_name=:name', array(':name'=>'title'))->conf_value; ?></title>
        <link rel="icon" href="favicon.ico" type="image/x-icon"/>
        <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
    </head>
    <body>
        <div class="box">
            <div class="bi">
               
                <div class="content">
                    <div class="line" id="line1">
                        <div id="header">

                            <div id="logo"><?php echo Config::model()->find('conf_name=:name', array(':name'=>'name_site'))->conf_value; ?>
                                <?php
                                if(Config::model()->find('conf_name=:name', array(':name'=>'registation'))->conf_value == 'on')
                                    if(Yii::app()->user->isGuest)
                                        echo '<div id="register"><a href="'.$this->createUrl('/User/user/login').'">Войти</a>
                        &nbsp;&nbsp;<a href="'.$this->createUrl('/User/user/registration').'">Зарегистрироваться</a></div>';
                                    else echo '<div id="register"><a href="'.$this->createUrl('/User/user/logout').'">Выйти ('.Yii::app()->user->name.')</a></div>';
                                ?>
                            </div>
                            <div id="mainmenu">
                                <?php $this->widget('zii.widgets.CMenu',array(
                                        'items'=>array(
                                                array('label'=>'Главная страница', 'url'=>array('/StaticPage/StaticPage/home')),
                                                array('label'=>'Статьи', 'url'=>array('/Post/post/index')),
                                                array('label'=>'Новости', 'url'=>array('/News/news/index')),
                                                array('label'=>'Галерея', 'url'=>array('/Foto/foto/index')),
                                                array('label'=>'О продукте', 'url'=>array('/StaticPage/StaticPage/about')),
                                                array('label'=>'Обратная связь', 'url'=>array('/Ticket/ticket/index')),

                                        ),
                                )); ?>
                            </div>
                            <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                                    'links'=>$this->breadcrumbs,
                            )); ?>

                        </div>

                        <?php echo $content;?>

                    </div>

                </div>

            </div>
        </div>
        
        <div id="footer">
            <?php Counter::model()->info(true)?>
            <div class="sap-content">

		Copyright &copy; <?php echo date('Y'); ?> by IWys.<br/>
		All Rights Reserved.<br/>
            </div>
        </div>
    </body>

</html>
